package com.creditcmsplt.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.creditcmsplt.entity.CreditCvthpdf;
import com.creditcmsplt.mapper.CreditCvthpdfMapper;
import com.creditcmsplt.service.CreditCvthpdfService;

@Service
public class CreditCvthpdfServiceImpl implements CreditCvthpdfService{

	@Autowired
	private CreditCvthpdfMapper creditCvthpdfMapper;

	@Transactional
	@Override
	public void insertCvthpdf(Integer report_id, String txtPath, String pdfName) {
		creditCvthpdfMapper.insertCvthpdf(report_id, txtPath, pdfName);
	}

	@Override
	public CreditCvthpdf getCvthpdfByPdfName(String pdfName) {
		return this.creditCvthpdfMapper.getCvthpdfByPdfName(pdfName);
	}

	@Transactional
	@Override
	public void updateReportFlag(Integer report_id) {
		this.creditCvthpdfMapper.updateReportFlag(report_id);
	}
}
